package cn.duwey.scs.api.vehicle;

import cn.duwey.scs.api.vehicle.dto.VehicleDTO;
import cn.duwey.scs.common.dto.ServiceResult;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping(value = "/vehicle", consumes = MediaType.APPLICATION_JSON_VALUE)
public interface VehicleApi {

    @PostMapping("/findById")
    ServiceResult<VehicleDTO> findById(@RequestParam("id") Long id);

    @PostMapping("/findByVin")
    ServiceResult<VehicleDTO> findByVin(@RequestParam("vin") String vin);

}
